home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
windows
/
prntbook.zip
/
PRNTBOOK.XWS
Wrap
Text File
|
1992-05-26
|
1KB
|
65 lines
/*
Prints parameters for all phone book entries
*/
string any_key,info
Alert "Print to Screen or Printer?","S","P"
if choice = 1 then goto print_to_screen
open output "phonbook.lst" as 1
x=0
While x < inbook
x=x+1
load bookname(x)
write line #1,"Name: " + name
write line #1,"Description: " + description
write line #1,"Phone Number: " + number
write line #1,"Terminal Type: " + terminal
write line #1,"Protocol: " + protocol
write line #1,"Script name: " + script
write line #1,"Speed: " + str(speed)
write line #1,"Capture file: " + capfile
write line #1, ""
write line #1, ""
Wend
close #1
x=0
open input "phonbook.lst" as 1
printer on
while not eof(1)
read line #1, info
lprint info
wend
printer off
Alert "Process Complete",OK
end
label print_to_screen
x=0
While x < inbook
x=x+1
load bookname(x)
Print "Name: " ; name
Print "Description: " ; description
Print "Phone Number: " ; number
Print "Terminal Type: " ; terminal
Print "Protocol: " ; protocol
Print "Script name: " ; script
Print "Speed: " ; speed
Print "Capture file: " ; capfile
print
print
print "Press Enter for next entry"
input any_key
print
print
Wend
Alert "Printing Complete",OK
end